package com.dbxt.common.service;

import com.dbxt.entity.Clerk;
import com.dbxt.entity.Student;
import com.dbxt.entity.Teacher;

public interface CommonService {
	public Student findOneStudent(String username);//根据学号查询学生（注意学生SQL是sno）
	
	public Teacher findOneTeacher(String username);//根据学号查询老师
	
	public Clerk findOneClerk(String username);//根据学号查询书记员
	
	public boolean stuentIsExist(String username);//学生是否存在（注意学生SQL是sno）

	public boolean teacherIsExist(String username);//老师是否存在

	public boolean clerkIsExist(String username);//书记员是否存在
	
	public Student studentLogin(String username,String password);//学生登录（注意学生SQL是sno）
	
	public Teacher teacherLogin(String username,String password);//老师登录
	
	public Clerk clerkLogin(String username,String password);//书记员登录
	
	public void changeStudentPassword(String password,Integer sid);//修改学生密码
	
	public void changeClerkPassword(String password,Integer cid);//修改书记员密码
	
	public void changeTeacherPassword(String password,Integer tid);//修改老师密码
}
